﻿<?xml version="1.0" encoding="utf-8"?>
<tasks>
  <task id="LinkTypes" name="LinkType definitions" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Work item link types created">
    <taskXml>
      <LINKTYPES>
        <LINKTYPE fileName="WorkItem Tracking\LinkTypes\SharedStep.xml" />
        <LINKTYPE fileName="WorkItem Tracking\LinkTypes\TestedBy.xml" />
        <LINKTYPE fileName="WorkItem Tracking\LinkTypes\Affects.xml" />
      </LINKTYPES>
    </taskXml>
  </task>
  <task id="WITs" name="WorkItemType definitions" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Work item types created">
    <dependencies>
      <dependency taskId="LinkTypes" />
    </dependencies>
    <taskXml>
      <WORKITEMTYPES>
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Bug.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\SharedStep.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Task.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\TestCase.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Issue.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\ChangeRequest.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\Requirement.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\SupportTicket.xml" />
        <WORKITEMTYPE fileName="WorkItem Tracking\TypeDefinitions\UseCase.xml" />
      </WORKITEMTYPES>
    </taskXml>
  </task>
  <task id="Queries" name="Stored Query Definitions" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Work item queries uploaded">
    <dependencies>
      <dependency taskId="WITs" />
    </dependencies>
    <taskXml>
      <QUERIES>
        <Permission allow="Read, Contribute, Delete, ManagePermissions, FullControl" identity="[SERVER]\$$PROJECTCOLLECTIONADMINGROUP$$" />
        <Permission allow="Read, Contribute, Delete, ManagePermissions, FullControl" identity="[$$PROJECTNAME$$]\$$PROJECTADMINGROUP$$" />
        <Permission allow="Read, Contribute, Delete, ManagePermissions, FullControl" identity="$$CREATOR_OWNER$$" />
        <Permission allow="Read" identity="[$$PROJECTNAME$$]\Readers" />
        <Permission allow="Read" identity="[$$PROJECTNAME$$]\Contributors" />
        <Permission allow="Read" identity="[$$PROJECTNAME$$]\Builders" />
        <Query name="My Bugs" fileName="WorkItem Tracking\Queries\MyBugs.wiq" />
        <Query name="My Tasks" fileName="WorkItem Tracking\Queries\MyTasks.wiq" />
        <Query name="My Test Cases" fileName="WorkItem Tracking\Queries\MyTestCases.wiq" />
        <Query name="Use Case Planning" fileName="WorkItem Tracking\Queries\UseCasePlanning.wiq" />
        <QueryFolder name="Project Management">
          <Query name="Active Tasks" fileName="WorkItem Tracking\Queries\ActiveTasks.wiq" />
          <Query name="All Iterations Backlog" fileName="WorkItem Tracking\Queries\AllIterationsBacklog.wiq" />
          <Query name="All Iterations Task Backlog" fileName="WorkItem Tracking\Queries\AllIterationsTaskBacklog.wiq" />
          <Query name="All Iterations Test Case Backlog" fileName="WorkItem Tracking\Queries\AllIterationsTestCaseBacklog.wiq" />
          <Query name="Open Issues" fileName="WorkItem Tracking\Queries\OpenIssues.wiq" />
          <Query name="Open Requirements" fileName="WorkItem Tracking\Queries\OpenRequirements.wiq" />
          <Query name="Open Support Tickets" fileName="WorkItem Tracking\Queries\OpenSupportTickets.wiq" />
          <Query name="Open Test Cases" fileName="WorkItem Tracking\Queries\OpenTestCases.wiq" />
          <Query name="Open Use Cases" fileName="WorkItem Tracking\Queries\OpenUserStories.wiq" />
          <Query name="Requirements Delivered" fileName="WorkItem Tracking\Queries\RequirementsDelivered.wiq" />
          <Query name="Work Breakdown from Requirements" fileName="WorkItem Tracking\Queries\WorkBreakdown.wiq" />
        </QueryFolder>
        <QueryFolder name="Change Management">
          <Query name="Change Requests" fileName="WorkItem Tracking\Queries\ChangeRequests.wiq" />
          <Query name="Open Change Requests With Requirements" fileName="WorkItem Tracking\Queries\OpenChangeRequestsWithRequirements.wiq" />
          <Query name="Requirements with Open Change Requests" fileName="WorkItem Tracking\Queries\RequirementsWithOpenChangeRequests.wiq" />
        </QueryFolder>
        <QueryFolder name="Iteration Management">
          <QueryFolder name="Iteration 1">
            <Query name="Active Bugs" fileName="WorkItem Tracking\Queries\ActiveBugs.wiq" />
            <Query name="Active Tasks" fileName="WorkItem Tracking\Queries\ActiveTasks.wiq" />
            <Query name="Iteration Backlog" fileName="WorkItem Tracking\Queries\Iteration1Backlog.wiq" />
            <Query name="Iteration Task Backlog" fileName="WorkItem Tracking\Queries\Iteration1TaskBacklog.wiq" />
            <Query name="Iteration Test Case Backlog" fileName="WorkItem Tracking\Queries\Iteration1TestCaseBacklog.wiq" />
            <Query name="Bug Triage" fileName="WorkItem Tracking\Queries\BugTriage.wiq" />
            <Query name="Completed Tasks" fileName="WorkItem Tracking\Queries\CompletedTasks.wiq" />
            <Query name="Open Issues" fileName="WorkItem Tracking\Queries\OpenIssues.wiq" />
            <Query name="Open Test Cases" fileName="WorkItem Tracking\Queries\OpenTestCases.wiq" />
            <Query name="Open Use Cases" fileName="WorkItem Tracking\Queries\OpenUserStories.wiq" />
            <Query name="Resolved Bugs" fileName="WorkItem Tracking\Queries\ResolvedBugs.wiq" />
            <Query name="Use Cases Delivered" fileName="WorkItem Tracking\Queries\UseCasesDelivered.wiq" />
            <Query name="Use Cases without Tasks" fileName="WorkItem Tracking\Queries\UseCasesWithoutTasks.wiq" />
            <Query name="Use Cases without Test Cases" fileName="WorkItem Tracking\Queries\UseCasesWithoutTestCases.wiq" />
          </QueryFolder>
          <QueryFolder name="Iteration 2">
            <Query name="Iteration Backlog" fileName="WorkItem Tracking\Queries\Iteration2Backlog.wiq" />
            <Query name="Iteration Task Backlog" fileName="WorkItem Tracking\Queries\Iteration2TaskBacklog.wiq" />
            <Query name="Iteration Test Case Backlog" fileName="WorkItem Tracking\Queries\Iteration2TestCaseBacklog.wiq" />
          </QueryFolder>
          <QueryFolder name="Iteration 3">
            <Query name="Iteration Backlog" fileName="WorkItem Tracking\Queries\Iteration3Backlog.wiq" />
           <Query name="Iteration Task Backlog" fileName="WorkItem Tracking\Queries\Iteration3TaskBacklog.wiq" />
            <Query name="Iteration Test Case Backlog" fileName="WorkItem Tracking\Queries\Iteration3TestCaseBacklog.wiq" />
          </QueryFolder>
        </QueryFolder>
        <QueryFolder name="Test Management">
          <Query name="Active Bugs" fileName="WorkItem Tracking\Queries\ActiveBugs.wiq" />
          <Query name="Open Test Cases" fileName="WorkItem Tracking\Queries\OpenTestCases.wiq" />
          <Query name="Resolved Bugs" fileName="WorkItem Tracking\Queries\ResolvedBugs.wiq" />
        </QueryFolder>
      </QUERIES>
    </taskXml>
  </task>
  <task id="Categories" name="Categories definitions" plugin="Microsoft.ProjectCreationWizard.WorkItemTracking" completionMessage="Work item type categories created">
    <dependencies>
      <dependency taskId="WITs" />
    </dependencies>
    <taskXml>
      <CATEGORIES fileName="WorkItem Tracking\Categories.xml" />
    </taskXml>
  </task>
</tasks>